package com.guigu.guliorder.feign;

import com.guigu.gulicommon.entity.pojo.Cart;
import com.guigu.gulicommon.entity.pojo.res.Res;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 购物车远程调用服务
 *
 * @author 陈俊杰
 * @version 1.0
 * @since 2024/9/26 14:13
 */
@FeignClient(name = "gateway-server", path = "/api/cart", contextId = "CartServer")
public interface CartServer {
    /**
     * 获取购物车信息
     */
    @GetMapping("/cart/")
    Res<Cart> getCartInfo();
}
